package ysq.xyg.model;

import lombok.Getter;
import lombok.Setter;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;
import java.io.Serializable;
import java.util.Date;

/**
 * 活动
 *
 * @author shengQiang yu
 * @date 2018/8/7 10:24
 */
@Getter
@Setter
@Table(name = "xyg_activity")
public class Activity implements Serializable {

    @Id
    private String id;

    /**
     * 标题
     */
    private String name;
    /**
     * 图片
     */
    private String picture;
    /**
     * 举办方
     */
    private String organizers;
    /**
     * 地址
     */
    private String address;
    /**
     * 电话
     */
    private String phone;
    /**
     * 描述
     */
    private String description;

    /**
     * 开始时间
     */
    @Column(name = "start_time")
    private Date startTime;

    /**
     * 结束时间
     */
    @Column(name = "end_time")
    private Date endTime;
    /**
     * 费用
     */
    @Column(name = "money")
    private Double money;

    /**
     * 创建时间
     */
    @Column(name = "create_time")
    private Date createTime;

    /***
     * 1、未开始，2、进行中，3、已结束，4、已报名
     */
    @Transient
    private String status;
}